package com.ruoyi.an.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.an.mapper.AnSjLbrItvMapper;
import com.ruoyi.an.domain.AnSjLbrItv;
import com.ruoyi.an.service.IAnSjLbrItvService;

/**
 * 人工干预报Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-10-24
 */
@Service
public class AnSjLbrItvServiceImpl implements IAnSjLbrItvService 
{
    @Autowired
    private AnSjLbrItvMapper anSjLbrItvMapper;

    /**
     * 查询人工干预报
     * 
     * @param id 人工干预报主键
     * @return 人工干预报
     */
    @Override
    public AnSjLbrItv selectAnSjLbrItvById(Long id)
    {
        return anSjLbrItvMapper.selectAnSjLbrItvById(id);
    }

    /**
     * 查询人工干预报列表
     * 
     * @param anSjLbrItv 人工干预报
     * @return 人工干预报
     */
    @Override
    public List<AnSjLbrItv> selectAnSjLbrItvList(AnSjLbrItv anSjLbrItv)
    {
        return anSjLbrItvMapper.selectAnSjLbrItvList(anSjLbrItv);
    }

    /**
     * 新增人工干预报
     * 
     * @param anSjLbrItv 人工干预报
     * @return 结果
     */
    @Override
    public int insertAnSjLbrItv(AnSjLbrItv anSjLbrItv)
    {
        return anSjLbrItvMapper.insertAnSjLbrItv(anSjLbrItv);
    }

    /**
     * 修改人工干预报
     * 
     * @param anSjLbrItv 人工干预报
     * @return 结果
     */
    @Override
    public int updateAnSjLbrItv(AnSjLbrItv anSjLbrItv)
    {
        return anSjLbrItvMapper.updateAnSjLbrItv(anSjLbrItv);
    }

    /**
     * 批量删除人工干预报
     * 
     * @param ids 需要删除的人工干预报主键
     * @return 结果
     */
    @Override
    public int deleteAnSjLbrItvByIds(Long[] ids)
    {
        return anSjLbrItvMapper.deleteAnSjLbrItvByIds(ids);
    }

    /**
     * 删除人工干预报信息
     * 
     * @param id 人工干预报主键
     * @return 结果
     */
    @Override
    public int deleteAnSjLbrItvById(Long id)
    {
        return anSjLbrItvMapper.deleteAnSjLbrItvById(id);
    }
}
